package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();
    Page<Order> findOrderPage(String queryString);
    void deleteByOrder(Integer id);
    void setOrderSetmeal(Map<String, Object> map1);


    List<Map> getOrderInfoByMemberIdAndDate(Map map);

    Map findOrderDetailsByOrderId(Integer orderId);

    Order findEditDataById(Integer id);

    Page<Order> findOrderPage(Map<String, Object> map);

    Page<Order> findOrderDataByMemberId(Integer memberId);

    Integer findSetmealIdByOrderId(Integer id);

    void edit(Order order);


    Map getOrderInfoByMemberId(Integer id);
}
